<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../themes/alertify.core.css" />
    <link rel="stylesheet" href="../themes/alertify.default.css" id="toggleCSS" />
    <script src="../lib/alertify.min.js"></script>
    <meta name="viewport" content="width=device-width">
</head>
<body>
<a href="#" id="confirm" onclick="abc();">Confirm Dialog</a><br>
<script>
    function abc () {
        alertify.confirm("This is a confirm dialog", function (e) {
            if (e) {
                alertify.success("You've clicked OK");
            } else {
                alertify.error("You've clicked Cancel");
            }
        })
    }

</script>
</body>
</html>